#!/bin/sh 
 
if [ -f /etc/eth0-setting ] ; then
	source /etc/eth0-setting

	ifconfig eth0 down                     
	ifconfig eth0 hw ether $MAC            
	ifconfig eth0 $IP netmask $Mask up 
	route add default gw $Gateway     

	#echo nameserver $DNS > /etc/resolv.conf

else
	sbin/ifconfig eth0 192.168.0.100 netmask 255.255.255.0 up
fi
